import time

def outer(func):
    def inner(*args,**kwargs):
        start = time.time()
        func(*args,**kwargs)
        end = time.time()
        during_time = end - start
        print(during_time)
        return "haha"
    return inner


@outer
def a(x): # a = outer(a)
    for i in range(x):
        print(i)

x = a(5)
print(x)
